
#ifndef MYCOIN_H
#define MYCOIN_H


#include <QPushButton>
#include<QPixmap>
#include<QTimer>

class myCoin : public QPushButton
{
    Q_OBJECT
public:
    explicit myCoin(QWidget *parent = nullptr);
    explicit myCoin( QString butimg );
    int posX;
    int posY;
    bool flag;
    void ChangFlag();
    bool isWin=false;
signals:
private:
    QTimer* timer1;
    QTimer* timer2;
    int min=1;
    int max=8;
    bool isanimation=false;
    void mousePressEvent(QMouseEvent *e);
};

#endif // MYCOIN_H
